export interface IFMenuBase {
    key: string;
    title: string;
    icon?: string;
    component?: string;
    query?: string;
    requireAuth?: string;
    route?: string;
    /** 是否登录校验，true不进行校验（访客） */
    login?: boolean;
}

export interface IFMenu extends IFMenuBase {
    subs?: IFMenu[];
}

const menus: {
    menus: IFMenu[];
    others: IFMenu[] | [];
    [index: string]: any;
} = {
    menus: [
        // 菜单相关路由
        { key: '/app/home/index', title: '首页', icon: 'mobile', component: 'HomePage' },
        { key: '/app/advantage/index', title: '服务优势', icon: 'mobile', component: 'Advantage' },
        {
            key: '/app/pinggu/index',
            title: '预审评估服务',
            icon: 'mobile',
            component: 'PingguPage',
        },
        { key: '/app/plish/index', title: '润色编辑服务', icon: 'mobile', component: 'Plish' },
        {
            key: '/app/translate/index',
            title: '学术翻译服务',
            icon: 'mobile',
            component: 'Translate',
        },
        { key: '/app/support/index', title: '发表支持服务', icon: 'mobile', component: 'Support' },
        {
            key: '/app/polishZh/index',
            title: '中文润色服务',
            icon: 'mobile',
            component: 'PolishZh',
        },
        { key: '/app/editTeam/index', title: '编辑团队', icon: 'mobile', component: 'EditTeam' },
        {
            key: '/app/publishCase/index',
            title: '发表案例',
            icon: 'mobile',
            component: 'PublishCase',
        },
        {
            key: '/app/medicalHotspots/index',
            title: '医学热点',
            icon: 'mobile',
            component: 'MedicalHotspots',
        },
        {
            key: '/app/frequentlyAsk/index',
            title: '常见问题',
            icon: 'mobile',
            component: 'FrequentlyAsk',
        },
    ],
    others: [], // 非菜单相关路由
};

export default menus;
